package com.g2.g2zuulgateway.config;



import com.g2.g2zuulgateway.filter.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 每增加一个filter都要配置，不然不生效
 */
@Configuration
public class FilterConfig {

    @Bean
    public AccessFilter accessFilter(){
        return new AccessFilter();
    }

    @Bean
    public IpFilter ipFilter(){
        return new IpFilter();
    }

    @Bean
    public GrayscaleFilter grayscaleFilter(){
        return new GrayscaleFilter();
    }

    @Bean
    public ErrorFilter errorFilter(){
        return new ErrorFilter();
    }

    @Bean
    public PostFilter postFilter(){
        return new PostFilter();
    }



}
